import service from "@/utils/fetch";
const post = {

  // 规格=====================================================================
  //查询商品规格表列表
  skuSpecification_list(params) {
    return service({
      method: "get",
      params,
      url: "/api/skuSpecification",
    });
  },
  
  //新增商品规格
  addSkuSpecification(params) {
    return service({
      method: "post",
      data: params,
      url: "/api/skuSpecification",
    });
  },
  
  //删除商品规格
  deleteSkuSpecification(params) {
    return service({
      method: "delete",
      data: params,
      url: `/api/skuSpecification`,
    });
  },
  
  //修改商品规格
  updateSkuSpecification(params) {
    return service({
      method: "put",
      data: params,
      url: "/api/skuSpecification",
    });
  },

  // 子规格====================================================
  skuSpecificationDetail_list(params) {
    return service({
      method: "get",
      params,
      url: "/api/skuSpecificationDetail",
    });
  },
  
  //新增商品规格
  addSkuSpecificationDetail(params) {
    return service({
      method: "post",
      data: params,
      url: "/api/skuSpecificationDetail",
    });
  },
  
  //删除商品规格
  deleteSkuSpecificationDetail(params) {
    return service({
      method: "delete",
      data: params,
      url: `/api/skuSpecificationDetail`,
    });
  },
  
  //修改商品规格
  updateSkuSpecificationDetail(params) {
    return service({
      method: "put",
      data: params,
      url: "/api/skuSpecificationDetail",
    });
  },
};

export default post;